package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.FishContentMapper;
import com.ruoyi.system.domain.FishContent;
import com.ruoyi.system.service.IFishContentService;

/**
 * 养殖鱼类Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-17
 */
@Service
public class FishContentServiceImpl implements IFishContentService 
{
    @Autowired
    private FishContentMapper fishContentMapper;

    /**
     * 查询养殖鱼类
     * 
     * @param id 养殖鱼类主键
     * @return 养殖鱼类
     */
    @Override
    public FishContent selectFishContentById(Long id)
    {
        return fishContentMapper.selectFishContentById(id);
    }

    /**
     * 查询养殖鱼类列表
     * 
     * @param fishContent 养殖鱼类
     * @return 养殖鱼类
     */
    @Override
    public List<FishContent> selectFishContentList(FishContent fishContent)
    {
        return fishContentMapper.selectFishContentList(fishContent);
    }

    /**
     * 新增养殖鱼类
     * 
     * @param fishContent 养殖鱼类
     * @return 结果
     */
    @Override
    public int insertFishContent(FishContent fishContent)
    {
        return fishContentMapper.insertFishContent(fishContent);
    }

    /**
     * 修改养殖鱼类
     * 
     * @param fishContent 养殖鱼类
     * @return 结果
     */
    @Override
    public int updateFishContent(FishContent fishContent)
    {
        return fishContentMapper.updateFishContent(fishContent);
    }

    /**
     * 批量删除养殖鱼类
     * 
     * @param ids 需要删除的养殖鱼类主键
     * @return 结果
     */
    @Override
    public int deleteFishContentByIds(Long[] ids)
    {
        return fishContentMapper.deleteFishContentByIds(ids);
    }

    /**
     * 删除养殖鱼类信息
     * 
     * @param id 养殖鱼类主键
     * @return 结果
     */
    @Override
    public int deleteFishContentById(Long id)
    {
        return fishContentMapper.deleteFishContentById(id);
    }
}
